StvDEV

 Components

 Drawing

 Extensions

  BasicTypesExtensions

  CollectionsExtensions

  ForEach(this T[], Action)

  GetRandomIndex(this IEnumerable)

  GetRandomIndex(this List)

  GetRandomIndex(this T[])

  GetRandomValue(this IEnumerable)

  GetRandomValue(this List)

  GetRandomValue(this T[])

  IEnumerable ForEach(this IEnumerable, Action)

  List ForEach(this List, Action)

  ColorsExtensions

 Inspector

 Patterns

 TextMeshPro

 Types

 Vibration

class CollectionsExtensions

Represents extensions for collections.
VisibilityPublic
Modifiersstatic

Public static methods

T[] ForEach<T>(this T[] array, Action<T> action)Performs the specified action for all array items.
int GetRandomIndex<T>(this List<T> list)Returns a random index of an item in the list.
int GetRandomIndex<T>(this T[] array)Returns a random index of an item in the array.
int GetRandomIndex<T>(this IEnumerable<T> collection)Returns a random index of an item in the collection.
T GetRandomValue<T>(this List<T> list)Returns a random value of an item in the list.
T GetRandomValue<T>(this T[] array)Returns a random value of an item in the array.
T GetRandomValue<T>(this IEnumerable<T> collection)Returns a random value of an item in the collection.
Constructor IEnumerable<T> ForEach<T>(this IEnumerable<T> collection, Action<T> action)Performs the specified action for all collection items.
Constructor List<T> ForEach<T>(this List<T> list, Action<T> action)Performs the specified action for all list items.